package com.shield.framework.security.token.uuid;

import com.shield.framework.security.auth.AuthUser;
import com.shield.framework.security.token.ShieldTokenService;
import lombok.RequiredArgsConstructor;
import net.dreamlu.mica.core.utils.StringUtil;

import java.time.Duration;
import java.util.Date;

/**
 * @description:
 * @Author Andy
 */
@RequiredArgsConstructor
public class ShieldUuidTokenService implements ShieldTokenService {

    @Override
    public String getSubject(String token) {
        return null;
    }

    @Override
    public String createToken(AuthUser authUser, Date now, Duration expireTime) {
        return StringUtil.getUUID();
    }
}
